<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
	<meta http-equiv="content-type" content="text/html; Charset=utf-8">
    <link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" type="text/css" href="css/ie.css">
  </head>
  
  <body>
   		<div id="header">
			<h1><a href="">Hello Everyone!</a><span>欢迎来到程序的世界</span></h1>
			<div id="search">
				<form method="post" id="searchform" action="commons/record_query">
					<input type="text" value="Search" name="s" id="s" onfocus="if(this.value=='Search')this.value=''" onblur="if(this.value=='')this.value='Search'" />
				</form>
			</div>
		</div>
	
		<div id="nav">
			<ul>
				<li><s:a href="">Home</s:a></li>
				<li><s:a href="commons/rank_list">RankList</s:a></li>
				<li><s:a href="page/user/user_info.jsp">MyZone</s:a></li>
				<li><s:a href="team/team_list">Team</s:a></li>
				<li><s:a href="page/app/appProblem.jsp">Problem</s:a></li>
				<li><s:a href="contest/contest_list">Contest</s:a></li>
				<li><s:a href="page/admin/academy_add.jsp">Config</s:a></li>
			</ul>
			<s:if test="#session.user != null">
				<s:a href="page/user/user_info.jsp" id="feed">${user.userName }</s:a>
				<s:a href="user/user_logout" id="logout">[logout]</s:a>
			</s:if>
			<s:else>
				<a href="login.jsp" id="logout">[login]</a>
			</s:else>
			
		</div>
  </body>
</html>
